package com.home.oss.factory;

import com.home.base.core.framework.msg.ServerResponse;
import com.home.oss.entity.OssBizFile;
import org.springframework.web.multipart.MultipartFile;

/**
 * Description:
 * Created by 王大宸 on 2020-10-15 21:39
 * Created with IntelliJ IDEA.
 */
public abstract class FileFactoryServer {

    /***
     * 功能说明：文件上传统一方法
     *
     * @author 王大宸
     * @date 2020/10/15 21:39
     * @param file 文件
     * @param type 文件类型
     * @return com.home.common.framework.msg.ServerResponse<com.home.oss.entity.BaseBizFileMd5>
     */
    public abstract ServerResponse<OssBizFile> upload(MultipartFile file, String type);

}
